﻿package idv.cjcat.emitter {
	use namespace engine;
	
	import idv.cjcat.emitter.geom.*;
	
	/**
	 * Point-shaped particle source.
	 */
	public class PointSource extends ParticleSource {
		
		public function PointSource(x:Number = 0, y:Number = 0) {
			super(x, y);
		}
		
		override public function spawnPos():MotionData2D {
			return new MotionData2D(x, y);
		}
		
		
		//XML
		//------------------------------------------------------------------------------------------------
		
		override public function toXML():XML {
			var xml:XML = super.toXML();
			xml.@type = "point";
			
			return xml;
		}
		
		//------------------------------------------------------------------------------------------------
		//end of XML
	}
}